<%@page import="com.dingpeikeji.quickdeer.modules.rentproduct.entity.TDemands"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<c:set var="REACTSTATUS_WAIT" value="<%=TDemands.REACTSTATUS_WAIT %>" />
<c:set var="REACTSTATUS_DONE" value="<%=TDemands.REACTSTATUS_DONE %>" />
<c:set var="REACTSTATUS_SURE" value="<%=TDemands.REACTSTATUS_SURE %>" />
<c:set var="REACTSTATUS_CANCEL" value="<%=TDemands.REACTSTATUS_CANCEL %>" />
<html>
<head>
<title>定制包车</title>
<link href="${ctxStatic }/index/css/respond.css" rel="stylesheet">
<jsp:include page="/WEB-INF/views/layouts/head.jsp"></jsp:include>
<script type="text/javascript">
$(function(){
	$("#form").click(function(){
		window.location.href = "${ctxFront }/rentproduct/demands/form";
	})
	$("#list").click(function(){
		window.location.href = "${ctxFront }/rentproduct/demands";
	})
});
</script>
</head>
<body>
<div class="dingzhi">
    <h4>定制包车</h4>
</div>
<div class="custcar">


        <ul class="tabs" style="float: left">
            <li><a href="#" id="form">定制包车</a></li>
            <li><a href="#" id="list">我的需求</a></li>

        </ul>

   <div id="tab1" style="float: right">
<h4>订单详情：</h4>
       <div class="desp"></div>

       <div class="xiangqing" style="padding-top: 20px">

           <div class="one" >
               <p>出发地 ：</p>
               <p>${tDemands.departcity.sitename }(${tDemands.sendAddress })</p>
           </div>

           <div class="one" style="background-color: #e8e8e8">
               <p>到达地 ：</p>
               <p>${tDemands.destcity.sitename }</p>
           </div>


           <div class="one">
               <p>选择车型 ：</p>
               <p>${tDemands.cartype.typename }</p>
           </div>


           <div class="one" style="background-color: #e8e8e8">
               <p>包车数量 ：</p>
               <p>${tDemands.vehiclenum}</p>
           </div>


           <div class="one">
               <p>包车时间 ：</p>
               <p><fmt:formatDate value="${tDemands.fromdate}" pattern="yyyy-MM-dd HH:mm"/></p>
           </div>

           <div class="one" style="background-color: #e8e8e8">
               <p>包车天数 ：</p>
               <p>${tDemands.rentdays}</p>
           </div>
           <div class="one">
               <p>联系人 ：</p>
               <p>${tDemands.contactor}</p>
           </div>
           <div class="one" style="background-color: #e8e8e8">
               <p>联系电话 ：</p>
               <p>${tDemands.contactphone}</p>
           </div>
           <div class="one">
               <p class="pos">行程备注 ：</p>
               <p><textarea name="" readonly="readonly">${tDemands.modeldesc}</textarea></p>
           </div>
       </div>
        <c:if test="${not empty reactList }">
       <div class="feedback">
           <h5>车队反馈信息 ：</h5>
           <div class="desp"></div>

           <table border="0" align="center">
               <tr class="mingch">
                   <td>名称</td>
                   <td>总价</td>
                   <td>车辆备注</td>
                   <td>响应时间</td>
                   <td>操作</td>
               </tr>
<c:set var="genOrdername" value="${tDemands.departcity.sitename}-${tDemands.destcity.sitename}${tDemands.rentdays }日定制包车"/>
		<c:forEach items="${reactList }" var="react">
               <tr style="height: 50px">
                   <td>${react.office.abbr }</td>
                   <td>${react.price }</td>
                   <td>${react.remarks }</td>
                   <td><fmt:formatDate value="${react.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
                   <td>
                   <c:if test="${tDemands.reactstatus ne REACTSTATUS_DONE and tDemands.reactstatus ne REACTSTATUS_CANCEL }">
						<a href="${ctxFront }/rentproduct/demands/book?typename=${tDemands.cartype.typename }&cargotypeid=${tDemands.cartype.cargotypeid }&outtimefee=${tDemands.cartype.outtimefee }
						&reactid=${react.reactid}&demandid=${tDemands.demandid}&ordername=${genOrdername }&
						dueamount=${react.price}&ordertype=c&bookingdays=${tDemands.rentdays }&
						realscheid=${react.reactid }&vehiclenum=${tDemands.vehiclenum}
						&contacts=${tDemands.contactor}&payertel=${tDemands.contactphone}&remarks=${tDemands.remarks }
						&boardaddr=${tDemands.sendAddress }&office.id=${react.office.id }
						&departdateStr=<fmt:formatDate value="${tDemands.fromdate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
						 class="container_table_y2 pointer" style="width:100px;">确认支付</a>
					</c:if>
					</td>
               </tr>
               </c:forEach>
           </table>
       </div>
       </c:if>
   </div>

</div>

</body>
<jsp:include page="/WEB-INF/views/layouts/foot.jsp"></jsp:include>
</html>